#pragma once
#include "ConstDefinition.h"

class CViewProcessesBySnapshot
{
public:
	CViewProcessesBySnapshot(void);
	~CViewProcessesBySnapshot(void);
	int ListProcesses( void );

private:

	CStdioFile m_fLogFile;
	E_LogType m_eLogType;
	BOOL GetProcessList( );
	BOOL ListProcessModules( DWORD dwPID );
	BOOL ListProcessThreads( DWORD dwOwnerPID );
	void PrintError( TCHAR* msg );
	void PrintLog(LPCTSTR p_strLog, E_LogType p_eLogType = LogType_Console);
};

